package com.ruoyi.technician.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.technician.mapper.TechnicianZfbCountMapper;
import com.ruoyi.technician.domain.TechnicianZfbCount;
import com.ruoyi.technician.service.ITechnicianZfbCountService;

/**
 * 技师支付宝账户Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-17
 */
@Service
public class TechnicianZfbCountServiceImpl implements ITechnicianZfbCountService 
{
    @Autowired
    private TechnicianZfbCountMapper technicianZfbCountMapper;

    /**
     * 查询技师支付宝账户
     * 
     * @param id 技师支付宝账户主键
     * @return 技师支付宝账户
     */
    @Override
    public TechnicianZfbCount selectTechnicianZfbCountById(Long id)
    {
        return technicianZfbCountMapper.selectTechnicianZfbCountById(id);
    }

    /**
     * 查询技师支付宝账户列表
     * 
     * @param technicianZfbCount 技师支付宝账户
     * @return 技师支付宝账户
     */
    @Override
    public List<TechnicianZfbCount> selectTechnicianZfbCountList(TechnicianZfbCount technicianZfbCount)
    {
        return technicianZfbCountMapper.selectTechnicianZfbCountList(technicianZfbCount);
    }

    /**
     * 新增技师支付宝账户
     * 
     * @param technicianZfbCount 技师支付宝账户
     * @return 结果
     */
    @Override
    public int insertTechnicianZfbCount(TechnicianZfbCount technicianZfbCount)
    {
        technicianZfbCount.setCreateTime(DateUtils.getNowDate());
        return technicianZfbCountMapper.insertTechnicianZfbCount(technicianZfbCount);
    }

    /**
     * 修改技师支付宝账户
     * 
     * @param technicianZfbCount 技师支付宝账户
     * @return 结果
     */
    @Override
    public int updateTechnicianZfbCount(TechnicianZfbCount technicianZfbCount)
    {
        technicianZfbCount.setUpdateTime(DateUtils.getNowDate());
        return technicianZfbCountMapper.updateTechnicianZfbCount(technicianZfbCount);
    }

    /**
     * 批量删除技师支付宝账户
     * 
     * @param ids 需要删除的技师支付宝账户主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianZfbCountByIds(Long[] ids)
    {
        return technicianZfbCountMapper.deleteTechnicianZfbCountByIds(ids);
    }

    /**
     * 删除技师支付宝账户信息
     * 
     * @param id 技师支付宝账户主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianZfbCountById(Long id)
    {
        return technicianZfbCountMapper.deleteTechnicianZfbCountById(id);
    }
}
